\doxysubsubsection{TIM Exported Macros }
\hypertarget{group___t_i_m___exported___macros}{}\label{group___t_i_m___exported___macros}\index{TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gace20fd4e38231b9682fbc83a80ec19a3}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+RESET\+\_\+\+HANDLE\+\_\+\+STATE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Reset TIM handle state. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga1a90544705059e9f19f991651623b0c0}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+ENABLE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Enable the TIM peripheral. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga04890dcef3ed061854721a3672585607}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+MOE\+\_\+\+ENABLE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Enable the TIM main Output. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga6a5e653e0e06a04151b74eb1a5f96eb6}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+DISABLE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Disable the TIM peripheral. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga69d63e147faeca8909e9679f684c0325}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+MOE\+\_\+\+DISABLE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Disable the TIM main Output. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gaa5c4053e8e57dc234efecbb698287b55}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+MOE\+\_\+\+DISABLE\+\_\+\+UNCONDITIONALLY}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Disable the TIM main Output. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga4d69943bc4716743c78e3194e259097e}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+ENABLE\+\_\+\+IT}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Enable the specified TIM interrupt. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga31d67e905bc62e3142179dc4bbf8ba64}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+DISABLE\+\_\+\+IT}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Disable the specified TIM interrupt. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gabb91ccd46cd7204c87170a1ea5b38135}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+ENABLE\+\_\+\+DMA}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+DMA\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Enable the specified DMA request. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga1a6e8b19efd23fd0295802d904c4702f}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+DISABLE\+\_\+\+DMA}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+DMA\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Disable the specified DMA request. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga96d98c66ad9d85f00c148de99888ef19}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+FLAG}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+FLAG\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Check whether the specified TIM interrupt flag is set or not. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga2fe74db6b8cb4badd04ed48e0f5ac7b4}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+CLEAR\+\_\+\+FLAG}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+FLAG\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Clear the specified TIM interrupt flag. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga644babf93470a6eee6bce8906c4da5c5}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+IT\+\_\+\+SOURCE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Check whether the specified TIM interrupt source is enabled or not. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gaea68155ce77e591e0c2582def061d6f0}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+CLEAR\+\_\+\+IT}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Clear the TIM interrupt pending bits. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga70b3690dfed282ade70d503801b8bfd0}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+UIFREMAP\+\_\+\+ENABLE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga3ad980b67f6a9d43e97cd71603421ad8}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+UIFREMAP\+\_\+\+DISABLE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga12126f9a7655afcd862fc2e82686e9b9}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+UIFCPY}}(\+\_\+\+\_\+\+COUNTER\+\_\+\+\_\+)
\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gac73f5e7669d92971830481e7298e98ba}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+IS\+\_\+\+TIM\+\_\+\+COUNTING\+\_\+\+DOWN}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Indicates whether or not the TIM Counter is used as downcounter. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gafdc5a06eab07e0c24e729fd492bdb27c}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+PRESCALER}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+PRESC\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Set the TIM Prescaler on runtime. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga9746ac75e4cd25cec1a9ebac8cb82b97}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+COUNTER}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+COUNTER\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Set the TIM Counter Register value on runtime. Note Please check if the bit 31 of CNT register is used as UIF copy or not, this may affect the counter range in case of 32 bits counter TIM instance. Bit 31 of CNT can be enabled/disabled using \doxylink{group___t_i_m___exported___macros_ga70b3690dfed282ade70d503801b8bfd0}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+UIFREMAP\+\_\+\+ENABLE()}/\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+UIFREMAP\+\_\+\+DISABLE() macros. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gaf1af08014b9d06efbbb091d58d47c8ba}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+COUNTER}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Get the TIM Counter Register value on runtime. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga1e6300cab1e34ecaaf490dc7d4812d69}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+AUTORELOAD}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+AUTORELOAD\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Set the TIM Autoreload Register value on runtime without calling another time any Init function. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gaa7a5c7645695bad15bacd402513a028a}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+AUTORELOAD}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Get the TIM Autoreload Register value on runtime. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga8aa84d77c670890408092630f9b2bdc4}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+CLOCKDIVISION}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CKD\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Set the TIM Clock Division value on runtime without calling another time any Init function. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gae6bc91bb5940bce52828c690f24001b8}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+CLOCKDIVISION}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Get the TIM Clock Division value on runtime. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gaeb106399b95ef02cec502f58276a0e92}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+ICPRESCALER}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+,  \+\_\+\+\_\+\+ICPSC\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Set the TIM Input Capture prescaler on runtime without calling another time HAL\+\_\+\+TIM\+\_\+\+IC\+\_\+\+Config\+Channel() function. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gabfeec6b3c67a5747c7dbd20aff61d8e2}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+ICPRESCALER}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Get the TIM Input Capture prescaler on runtime. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga300d0c9624c3b072d3afeb7cef639b66}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+COMPARE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+,  \+\_\+\+\_\+\+COMPARE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Set the TIM Capture Compare Register value on runtime without calling another time Config\+Channel function. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gaa40722f56910966e1da5241b610eed84}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+COMPARE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Get the TIM Capture Compare Register value on runtime. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga199e848f0a301987a500faea0db2dd70}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+ENABLE\+\_\+\+OCx\+PRELOAD}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Set the TIM Output compare preload. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga3e0ec4eb797b54c408a3be067f41a2f8}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+DISABLE\+\_\+\+OCx\+PRELOAD}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Reset the TIM Output compare preload. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga390795eb198214e5d4ed235ae3f751e4}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+ENABLE\+\_\+\+OCx\+FAST}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Enable fast mode for a given channel. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gab9f8dc78886759192b5f044c7b9b0aa7}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+DISABLE\+\_\+\+OCx\+FAST}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Disable fast mode for a given channel. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_ga3b06856bd6d7e10cfff342b1726db51d}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+URS\+\_\+\+ENABLE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Set the Update Request Source (URS) bit of the TIMx\+\_\+\+CR1 register. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gafacb551a4c537e62a0fe740b2f12236c}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+URS\+\_\+\+DISABLE}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Reset the Update Request Source (URS) bit of the TIMx\+\_\+\+CR1 register. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gac5d6989516caa67fae23a9329228cdc7}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+CAPTUREPOLARITY}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+,  \+\_\+\+\_\+\+POLARITY\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Set the TIM Capture x input polarity on runtime. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group___t_i_m___exported___macros_gace8f6dae3653111344f4ff6bbfde7d2a}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SELECT\+\_\+\+CCDMAREQUEST}}(\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+,  \+\_\+\+\_\+\+CCDMA\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Select the Capture/compare DMA request source. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsubsubsection{Detailed Description}


\label{doc-define-members}
\Hypertarget{group___t_i_m___exported___macros_doc-define-members}
\doxysubsubsubsection{Macro Definition Documentation}
\Hypertarget{group___t_i_m___exported___macros_ga2fe74db6b8cb4badd04ed48e0f5ac7b4}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_CLEAR\_FLAG@{\_\_HAL\_TIM\_CLEAR\_FLAG}}
\index{\_\_HAL\_TIM\_CLEAR\_FLAG@{\_\_HAL\_TIM\_CLEAR\_FLAG}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_CLEAR\_FLAG}{\_\_HAL\_TIM\_CLEAR\_FLAG}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga2fe74db6b8cb4badd04ed48e0f5ac7b4} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+CLEAR\+\_\+\+FLAG(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+FLAG\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>SR\ =\ \string~(\_\_FLAG\_\_))}

\end{DoxyCode}


Clear the specified TIM interrupt flag. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & specifies the TIM Handle. \\
\hline
{\em \+\_\+\+\_\+\+FLAG\+\_\+\+\_\+} & specifies the TIM interrupt flag to clear. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+FLAG\+\_\+\+UPDATE\+: Update interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC1\+: Capture/\+Compare 1 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC2\+: Capture/\+Compare 2 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC3\+: Capture/\+Compare 3 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC4\+: Capture/\+Compare 4 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC5\+: Compare 5 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC6\+: Compare 6 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+COM\+: Commutation interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+TRIGGER\+: Trigger interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+BREAK\+: Break interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+BREAK2\+: Break 2 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+SYSTEM\+\_\+\+BREAK\+: System Break interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC1\+OF\+: Capture/\+Compare 1 overcapture flag \item TIM\+\_\+\+FLAG\+\_\+\+CC2\+OF\+: Capture/\+Compare 2 overcapture flag \item TIM\+\_\+\+FLAG\+\_\+\+CC3\+OF\+: Capture/\+Compare 3 overcapture flag \item TIM\+\_\+\+FLAG\+\_\+\+CC4\+OF\+: Capture/\+Compare 4 overcapture flag \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em The} & new state of {\bfseries{FLAG}} (TRUE or FALSE). \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gaea68155ce77e591e0c2582def061d6f0}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_CLEAR\_IT@{\_\_HAL\_TIM\_CLEAR\_IT}}
\index{\_\_HAL\_TIM\_CLEAR\_IT@{\_\_HAL\_TIM\_CLEAR\_IT}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_CLEAR\_IT}{\_\_HAL\_TIM\_CLEAR\_IT}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gaea68155ce77e591e0c2582def061d6f0} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+CLEAR\+\_\+\+IT(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>SR\ =\ \string~(\_\_INTERRUPT\_\_))}

\end{DoxyCode}


Clear the TIM interrupt pending bits. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle \\
\hline
{\em \+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+} & specifies the interrupt pending bit to clear. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+IT\+\_\+\+UPDATE\+: Update interrupt \item TIM\+\_\+\+IT\+\_\+\+CC1\+: Capture/\+Compare 1 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC2\+: Capture/\+Compare 2 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC3\+: Capture/\+Compare 3 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC4\+: Capture/\+Compare 4 interrupt \item TIM\+\_\+\+IT\+\_\+\+COM\+: Commutation interrupt \item TIM\+\_\+\+IT\+\_\+\+TRIGGER\+: Trigger interrupt \item TIM\+\_\+\+IT\+\_\+\+BREAK\+: Break interrupt \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga6a5e653e0e06a04151b74eb1a5f96eb6}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_DISABLE@{\_\_HAL\_TIM\_DISABLE}}
\index{\_\_HAL\_TIM\_DISABLE@{\_\_HAL\_TIM\_DISABLE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_DISABLE}{\_\_HAL\_TIM\_DISABLE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga6a5e653e0e06a04151b74eb1a5f96eb6} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+DISABLE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ if\ (((\_\_HANDLE\_\_)-\/>Instance-\/>CCER\ \&\ TIM\_CCER\_CCxE\_MASK)\ ==\ 0UL)\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \{\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ if(((\_\_HANDLE\_\_)-\/>Instance-\/>CCER\ \&\ TIM\_CCER\_CCxNE\_MASK)\ ==\ 0UL)\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \{\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>Instance-\/>CR1\ \&=\ \string~(\mbox{\hyperlink{group___peripheral___registers___bits___definition_ga93d86355e5e3b399ed45e1ca83abed2a}{TIM\_CR1\_CEN}});\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \}\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \(\backslash\)}
\DoxyCodeLine{\ \ \}\ \textcolor{keywordflow}{while}(0)}

\end{DoxyCode}


Disable the TIM peripheral. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga1a6e8b19efd23fd0295802d904c4702f}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_DISABLE\_DMA@{\_\_HAL\_TIM\_DISABLE\_DMA}}
\index{\_\_HAL\_TIM\_DISABLE\_DMA@{\_\_HAL\_TIM\_DISABLE\_DMA}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_DISABLE\_DMA}{\_\_HAL\_TIM\_DISABLE\_DMA}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga1a6e8b19efd23fd0295802d904c4702f} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+DISABLE\+\_\+\+DMA(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+DMA\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>DIER\ \&=\ \string~(\_\_DMA\_\_))}

\end{DoxyCode}


Disable the specified DMA request. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & specifies the TIM Handle. \\
\hline
{\em \+\_\+\+\_\+\+DMA\+\_\+\+\_\+} & specifies the TIM DMA request to disable. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+DMA\+\_\+\+UPDATE\+: Update DMA request \item TIM\+\_\+\+DMA\+\_\+\+CC1\+: Capture/\+Compare 1 DMA request \item TIM\+\_\+\+DMA\+\_\+\+CC2\+: Capture/\+Compare 2 DMA request \item TIM\+\_\+\+DMA\+\_\+\+CC3\+: Capture/\+Compare 3 DMA request \item TIM\+\_\+\+DMA\+\_\+\+CC4\+: Capture/\+Compare 4 DMA request \item TIM\+\_\+\+DMA\+\_\+\+COM\+: Commutation DMA request \item TIM\+\_\+\+DMA\+\_\+\+TRIGGER\+: Trigger DMA request \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga31d67e905bc62e3142179dc4bbf8ba64}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_DISABLE\_IT@{\_\_HAL\_TIM\_DISABLE\_IT}}
\index{\_\_HAL\_TIM\_DISABLE\_IT@{\_\_HAL\_TIM\_DISABLE\_IT}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_DISABLE\_IT}{\_\_HAL\_TIM\_DISABLE\_IT}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga31d67e905bc62e3142179dc4bbf8ba64} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+DISABLE\+\_\+\+IT(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>DIER\ \&=\ \string~(\_\_INTERRUPT\_\_))}

\end{DoxyCode}


Disable the specified TIM interrupt. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & specifies the TIM Handle. \\
\hline
{\em \+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+} & specifies the TIM interrupt source to disable. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+IT\+\_\+\+UPDATE\+: Update interrupt \item TIM\+\_\+\+IT\+\_\+\+CC1\+: Capture/\+Compare 1 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC2\+: Capture/\+Compare 2 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC3\+: Capture/\+Compare 3 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC4\+: Capture/\+Compare 4 interrupt \item TIM\+\_\+\+IT\+\_\+\+COM\+: Commutation interrupt \item TIM\+\_\+\+IT\+\_\+\+TRIGGER\+: Trigger interrupt \item TIM\+\_\+\+IT\+\_\+\+BREAK\+: Break interrupt \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gab9f8dc78886759192b5f044c7b9b0aa7}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_DISABLE\_OCxFAST@{\_\_HAL\_TIM\_DISABLE\_OCxFAST}}
\index{\_\_HAL\_TIM\_DISABLE\_OCxFAST@{\_\_HAL\_TIM\_DISABLE\_OCxFAST}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_DISABLE\_OCxFAST}{\_\_HAL\_TIM\_DISABLE\_OCxFAST}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gab9f8dc78886759192b5f044c7b9b0aa7} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+DISABLE\+\_\+\+OCx\+FAST(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ (((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga6b1541e4a49d62610899e24bf23f4879}{TIM\_CHANNEL\_1}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR1\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gab9c5878e85ce02c22d8a374deebd1b6e}{\string~TIM\_CCMR1\_OC1FE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga33e02d43345a7ac5886f01b39e4f7ccd}{TIM\_CHANNEL\_2}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR1\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga3bf610cf77c3c6c936ce7c4f85992e6c}{\string~TIM\_CCMR1\_OC2FE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga4ea100c1789b178f3cb46721b7257e2d}{TIM\_CHANNEL\_3}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR2\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gae6d8d2847058747ce23a648668ce4dba}{\string~TIM\_CCMR2\_OC3FE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gad59ef74820ee8bf77fa1f8d589fde2ac}{TIM\_CHANNEL\_4}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR2\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga70dc197250c2699d470aea1a7a42ad57}{\string~TIM\_CCMR2\_OC4FE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gae7a7e7ef775b2cce4dc5da3821c0703f}{TIM\_CHANNEL\_5}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR3\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gab1bfc494938e6bc6cecf58fe5200956a}{\string~TIM\_CCMR3\_OC5FE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR3\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga0edb08af3da878d46153477508fbbbf8}{\string~TIM\_CCMR3\_OC6FE}}))}

\end{DoxyCode}


Disable fast mode for a given channel. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+} & TIM Channels to be configured. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CHANNEL\+\_\+1\+: TIM Channel 1 selected \item TIM\+\_\+\+CHANNEL\+\_\+2\+: TIM Channel 2 selected \item TIM\+\_\+\+CHANNEL\+\_\+3\+: TIM Channel 3 selected \item TIM\+\_\+\+CHANNEL\+\_\+4\+: TIM Channel 4 selected \item TIM\+\_\+\+CHANNEL\+\_\+5\+: TIM Channel 5 selected \item TIM\+\_\+\+CHANNEL\+\_\+6\+: TIM Channel 6 selected \end{DoxyItemize}
\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
When fast mode is disabled CCx output behaves normally depending on counter and CCRx values even when the trigger is ON. The minimum delay to activate CCx output when an active edge occurs on the trigger input is 5 clock cycles. 
\end{DoxyNote}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga3e0ec4eb797b54c408a3be067f41a2f8}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_DISABLE\_OCxPRELOAD@{\_\_HAL\_TIM\_DISABLE\_OCxPRELOAD}}
\index{\_\_HAL\_TIM\_DISABLE\_OCxPRELOAD@{\_\_HAL\_TIM\_DISABLE\_OCxPRELOAD}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_DISABLE\_OCxPRELOAD}{\_\_HAL\_TIM\_DISABLE\_OCxPRELOAD}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga3e0ec4eb797b54c408a3be067f41a2f8} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+DISABLE\+\_\+\+OCx\+PRELOAD(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ (((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga6b1541e4a49d62610899e24bf23f4879}{TIM\_CHANNEL\_1}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR1\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga1aa54ddf87a4b339881a8d5368ec80eb}{\string~TIM\_CCMR1\_OC1PE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga33e02d43345a7ac5886f01b39e4f7ccd}{TIM\_CHANNEL\_2}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR1\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gabddbf508732039730125ab3e87e9d370}{\string~TIM\_CCMR1\_OC2PE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga4ea100c1789b178f3cb46721b7257e2d}{TIM\_CHANNEL\_3}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR2\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga276fd2250d2b085b73ef51cb4c099d24}{\string~TIM\_CCMR2\_OC3PE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gad59ef74820ee8bf77fa1f8d589fde2ac}{TIM\_CHANNEL\_4}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR2\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga3e951cd3f6593e321cf79b662a1deaaa}{\string~TIM\_CCMR2\_OC4PE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gae7a7e7ef775b2cce4dc5da3821c0703f}{TIM\_CHANNEL\_5}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR3\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga2efaf0e7c00e772ba4662978f4793666}{\string~TIM\_CCMR3\_OC5PE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR3\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga421f1263c2900e4c952424d5cb062476}{\string~TIM\_CCMR3\_OC6PE}}))}

\end{DoxyCode}


Reset the TIM Output compare preload. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+} & TIM Channels to be configured. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CHANNEL\+\_\+1\+: TIM Channel 1 selected \item TIM\+\_\+\+CHANNEL\+\_\+2\+: TIM Channel 2 selected \item TIM\+\_\+\+CHANNEL\+\_\+3\+: TIM Channel 3 selected \item TIM\+\_\+\+CHANNEL\+\_\+4\+: TIM Channel 4 selected \item TIM\+\_\+\+CHANNEL\+\_\+5\+: TIM Channel 5 selected \item TIM\+\_\+\+CHANNEL\+\_\+6\+: TIM Channel 6 selected \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga1a90544705059e9f19f991651623b0c0}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_ENABLE@{\_\_HAL\_TIM\_ENABLE}}
\index{\_\_HAL\_TIM\_ENABLE@{\_\_HAL\_TIM\_ENABLE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_ENABLE}{\_\_HAL\_TIM\_ENABLE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga1a90544705059e9f19f991651623b0c0} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+ENABLE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>CR1|=(\mbox{\hyperlink{group___peripheral___registers___bits___definition_ga93d86355e5e3b399ed45e1ca83abed2a}{TIM\_CR1\_CEN}}))}

\end{DoxyCode}


Enable the TIM peripheral. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gabb91ccd46cd7204c87170a1ea5b38135}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_ENABLE\_DMA@{\_\_HAL\_TIM\_ENABLE\_DMA}}
\index{\_\_HAL\_TIM\_ENABLE\_DMA@{\_\_HAL\_TIM\_ENABLE\_DMA}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_ENABLE\_DMA}{\_\_HAL\_TIM\_ENABLE\_DMA}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gabb91ccd46cd7204c87170a1ea5b38135} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+ENABLE\+\_\+\+DMA(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+DMA\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>DIER\ |=\ (\_\_DMA\_\_))}

\end{DoxyCode}


Enable the specified DMA request. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & specifies the TIM Handle. \\
\hline
{\em \+\_\+\+\_\+\+DMA\+\_\+\+\_\+} & specifies the TIM DMA request to enable. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+DMA\+\_\+\+UPDATE\+: Update DMA request \item TIM\+\_\+\+DMA\+\_\+\+CC1\+: Capture/\+Compare 1 DMA request \item TIM\+\_\+\+DMA\+\_\+\+CC2\+: Capture/\+Compare 2 DMA request \item TIM\+\_\+\+DMA\+\_\+\+CC3\+: Capture/\+Compare 3 DMA request \item TIM\+\_\+\+DMA\+\_\+\+CC4\+: Capture/\+Compare 4 DMA request \item TIM\+\_\+\+DMA\+\_\+\+COM\+: Commutation DMA request \item TIM\+\_\+\+DMA\+\_\+\+TRIGGER\+: Trigger DMA request \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga4d69943bc4716743c78e3194e259097e}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_ENABLE\_IT@{\_\_HAL\_TIM\_ENABLE\_IT}}
\index{\_\_HAL\_TIM\_ENABLE\_IT@{\_\_HAL\_TIM\_ENABLE\_IT}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_ENABLE\_IT}{\_\_HAL\_TIM\_ENABLE\_IT}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga4d69943bc4716743c78e3194e259097e} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+ENABLE\+\_\+\+IT(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>DIER\ |=\ (\_\_INTERRUPT\_\_))}

\end{DoxyCode}


Enable the specified TIM interrupt. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & specifies the TIM Handle. \\
\hline
{\em \+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+} & specifies the TIM interrupt source to enable. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+IT\+\_\+\+UPDATE\+: Update interrupt \item TIM\+\_\+\+IT\+\_\+\+CC1\+: Capture/\+Compare 1 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC2\+: Capture/\+Compare 2 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC3\+: Capture/\+Compare 3 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC4\+: Capture/\+Compare 4 interrupt \item TIM\+\_\+\+IT\+\_\+\+COM\+: Commutation interrupt \item TIM\+\_\+\+IT\+\_\+\+TRIGGER\+: Trigger interrupt \item TIM\+\_\+\+IT\+\_\+\+BREAK\+: Break interrupt \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga390795eb198214e5d4ed235ae3f751e4}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_ENABLE\_OCxFAST@{\_\_HAL\_TIM\_ENABLE\_OCxFAST}}
\index{\_\_HAL\_TIM\_ENABLE\_OCxFAST@{\_\_HAL\_TIM\_ENABLE\_OCxFAST}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_ENABLE\_OCxFAST}{\_\_HAL\_TIM\_ENABLE\_OCxFAST}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga390795eb198214e5d4ed235ae3f751e4} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+ENABLE\+\_\+\+OCx\+FAST(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ (((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga6b1541e4a49d62610899e24bf23f4879}{TIM\_CHANNEL\_1}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR1\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gab9c5878e85ce02c22d8a374deebd1b6e}{TIM\_CCMR1\_OC1FE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga33e02d43345a7ac5886f01b39e4f7ccd}{TIM\_CHANNEL\_2}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR1\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga3bf610cf77c3c6c936ce7c4f85992e6c}{TIM\_CCMR1\_OC2FE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga4ea100c1789b178f3cb46721b7257e2d}{TIM\_CHANNEL\_3}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR2\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gae6d8d2847058747ce23a648668ce4dba}{TIM\_CCMR2\_OC3FE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gad59ef74820ee8bf77fa1f8d589fde2ac}{TIM\_CHANNEL\_4}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR2\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga70dc197250c2699d470aea1a7a42ad57}{TIM\_CCMR2\_OC4FE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gae7a7e7ef775b2cce4dc5da3821c0703f}{TIM\_CHANNEL\_5}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR3\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gab1bfc494938e6bc6cecf58fe5200956a}{TIM\_CCMR3\_OC5FE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR3\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga0edb08af3da878d46153477508fbbbf8}{TIM\_CCMR3\_OC6FE}}))}

\end{DoxyCode}


Enable fast mode for a given channel. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+} & TIM Channels to be configured. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CHANNEL\+\_\+1\+: TIM Channel 1 selected \item TIM\+\_\+\+CHANNEL\+\_\+2\+: TIM Channel 2 selected \item TIM\+\_\+\+CHANNEL\+\_\+3\+: TIM Channel 3 selected \item TIM\+\_\+\+CHANNEL\+\_\+4\+: TIM Channel 4 selected \item TIM\+\_\+\+CHANNEL\+\_\+5\+: TIM Channel 5 selected \item TIM\+\_\+\+CHANNEL\+\_\+6\+: TIM Channel 6 selected \end{DoxyItemize}
\\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
When fast mode is enabled an active edge on the trigger input acts like a compare match on CCx output. Delay to sample the trigger input and to activate CCx output is reduced to 3 clock cycles. 

Fast mode acts only if the channel is configured in PWM1 or PWM2 mode. 
\end{DoxyNote}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga199e848f0a301987a500faea0db2dd70}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_ENABLE\_OCxPRELOAD@{\_\_HAL\_TIM\_ENABLE\_OCxPRELOAD}}
\index{\_\_HAL\_TIM\_ENABLE\_OCxPRELOAD@{\_\_HAL\_TIM\_ENABLE\_OCxPRELOAD}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_ENABLE\_OCxPRELOAD}{\_\_HAL\_TIM\_ENABLE\_OCxPRELOAD}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga199e848f0a301987a500faea0db2dd70} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+ENABLE\+\_\+\+OCx\+PRELOAD(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ (((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga6b1541e4a49d62610899e24bf23f4879}{TIM\_CHANNEL\_1}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR1\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga1aa54ddf87a4b339881a8d5368ec80eb}{TIM\_CCMR1\_OC1PE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga33e02d43345a7ac5886f01b39e4f7ccd}{TIM\_CHANNEL\_2}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR1\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gabddbf508732039730125ab3e87e9d370}{TIM\_CCMR1\_OC2PE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga4ea100c1789b178f3cb46721b7257e2d}{TIM\_CHANNEL\_3}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR2\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga276fd2250d2b085b73ef51cb4c099d24}{TIM\_CCMR2\_OC3PE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gad59ef74820ee8bf77fa1f8d589fde2ac}{TIM\_CHANNEL\_4}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR2\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga3e951cd3f6593e321cf79b662a1deaaa}{TIM\_CCMR2\_OC4PE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gae7a7e7ef775b2cce4dc5da3821c0703f}{TIM\_CHANNEL\_5}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR3\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga2efaf0e7c00e772ba4662978f4793666}{TIM\_CCMR3\_OC5PE}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR3\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga421f1263c2900e4c952424d5cb062476}{TIM\_CCMR3\_OC6PE}}))}

\end{DoxyCode}


Set the TIM Output compare preload. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+} & TIM Channels to be configured. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CHANNEL\+\_\+1\+: TIM Channel 1 selected \item TIM\+\_\+\+CHANNEL\+\_\+2\+: TIM Channel 2 selected \item TIM\+\_\+\+CHANNEL\+\_\+3\+: TIM Channel 3 selected \item TIM\+\_\+\+CHANNEL\+\_\+4\+: TIM Channel 4 selected \item TIM\+\_\+\+CHANNEL\+\_\+5\+: TIM Channel 5 selected \item TIM\+\_\+\+CHANNEL\+\_\+6\+: TIM Channel 6 selected \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gaa7a5c7645695bad15bacd402513a028a}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_GET\_AUTORELOAD@{\_\_HAL\_TIM\_GET\_AUTORELOAD}}
\index{\_\_HAL\_TIM\_GET\_AUTORELOAD@{\_\_HAL\_TIM\_GET\_AUTORELOAD}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_GET\_AUTORELOAD}{\_\_HAL\_TIM\_GET\_AUTORELOAD}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gaa7a5c7645695bad15bacd402513a028a} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+AUTORELOAD(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>ARR)}

\end{DoxyCode}


Get the TIM Autoreload Register value on runtime. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 16-\/bit} & or 32-\/bit value of the timer auto-\/reload register(\+TIMx\+\_\+\+ARR) \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gae6bc91bb5940bce52828c690f24001b8}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_GET\_CLOCKDIVISION@{\_\_HAL\_TIM\_GET\_CLOCKDIVISION}}
\index{\_\_HAL\_TIM\_GET\_CLOCKDIVISION@{\_\_HAL\_TIM\_GET\_CLOCKDIVISION}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_GET\_CLOCKDIVISION}{\_\_HAL\_TIM\_GET\_CLOCKDIVISION}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gae6bc91bb5940bce52828c690f24001b8} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+CLOCKDIVISION(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>CR1\ \&\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gacacc4ff7e5b75fd2e4e6b672ccd33a72}{TIM\_CR1\_CKD}})}

\end{DoxyCode}


Get the TIM Clock Division value on runtime. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em The} & clock division can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CLOCKDIVISION\+\_\+\+DIV1\+: t\+DTS=t\+CK\+\_\+\+INT \item TIM\+\_\+\+CLOCKDIVISION\+\_\+\+DIV2\+: t\+DTS=2\texorpdfstring{$\ast$}{*}t\+CK\+\_\+\+INT \item TIM\+\_\+\+CLOCKDIVISION\+\_\+\+DIV4\+: t\+DTS=4\texorpdfstring{$\ast$}{*}t\+CK\+\_\+\+INT \end{DoxyItemize}
\\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gaa40722f56910966e1da5241b610eed84}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_GET\_COMPARE@{\_\_HAL\_TIM\_GET\_COMPARE}}
\index{\_\_HAL\_TIM\_GET\_COMPARE@{\_\_HAL\_TIM\_GET\_COMPARE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_GET\_COMPARE}{\_\_HAL\_TIM\_GET\_COMPARE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gaa40722f56910966e1da5241b610eed84} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+COMPARE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ (((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga6b1541e4a49d62610899e24bf23f4879}{TIM\_CHANNEL\_1}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR1)\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga33e02d43345a7ac5886f01b39e4f7ccd}{TIM\_CHANNEL\_2}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR2)\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga4ea100c1789b178f3cb46721b7257e2d}{TIM\_CHANNEL\_3}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR3)\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gad59ef74820ee8bf77fa1f8d589fde2ac}{TIM\_CHANNEL\_4}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR4)\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gae7a7e7ef775b2cce4dc5da3821c0703f}{TIM\_CHANNEL\_5}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR5)\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR6))}

\end{DoxyCode}


Get the TIM Capture Compare Register value on runtime. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+} & TIM Channel associated with the capture compare register This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CHANNEL\+\_\+1\+: get capture/compare 1 register value \item TIM\+\_\+\+CHANNEL\+\_\+2\+: get capture/compare 2 register value \item TIM\+\_\+\+CHANNEL\+\_\+3\+: get capture/compare 3 register value \item TIM\+\_\+\+CHANNEL\+\_\+4\+: get capture/compare 4 register value \item TIM\+\_\+\+CHANNEL\+\_\+5\+: get capture/compare 5 register value \item TIM\+\_\+\+CHANNEL\+\_\+6\+: get capture/compare 6 register value \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 16-\/bit} & or 32-\/bit value of the capture/compare register (TIMx\+\_\+\+CCRy) \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gaf1af08014b9d06efbbb091d58d47c8ba}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_GET\_COUNTER@{\_\_HAL\_TIM\_GET\_COUNTER}}
\index{\_\_HAL\_TIM\_GET\_COUNTER@{\_\_HAL\_TIM\_GET\_COUNTER}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_GET\_COUNTER}{\_\_HAL\_TIM\_GET\_COUNTER}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gaf1af08014b9d06efbbb091d58d47c8ba} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+COUNTER(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>CNT)}

\end{DoxyCode}


Get the TIM Counter Register value on runtime. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em 16-\/bit} & or 32-\/bit value of the timer counter register (TIMx\+\_\+\+CNT) \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga96d98c66ad9d85f00c148de99888ef19}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_GET\_FLAG@{\_\_HAL\_TIM\_GET\_FLAG}}
\index{\_\_HAL\_TIM\_GET\_FLAG@{\_\_HAL\_TIM\_GET\_FLAG}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_GET\_FLAG}{\_\_HAL\_TIM\_GET\_FLAG}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga96d98c66ad9d85f00c148de99888ef19} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+FLAG(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+FLAG\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{(((\_\_HANDLE\_\_)-\/>Instance-\/>SR\ \&(\_\_FLAG\_\_))\ ==\ (\_\_FLAG\_\_))}

\end{DoxyCode}


Check whether the specified TIM interrupt flag is set or not. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & specifies the TIM Handle. \\
\hline
{\em \+\_\+\+\_\+\+FLAG\+\_\+\+\_\+} & specifies the TIM interrupt flag to check. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+FLAG\+\_\+\+UPDATE\+: Update interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC1\+: Capture/\+Compare 1 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC2\+: Capture/\+Compare 2 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC3\+: Capture/\+Compare 3 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC4\+: Capture/\+Compare 4 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC5\+: Compare 5 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC6\+: Compare 6 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+COM\+: Commutation interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+TRIGGER\+: Trigger interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+BREAK\+: Break interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+BREAK2\+: Break 2 interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+SYSTEM\+\_\+\+BREAK\+: System Break interrupt flag \item TIM\+\_\+\+FLAG\+\_\+\+CC1\+OF\+: Capture/\+Compare 1 overcapture flag \item TIM\+\_\+\+FLAG\+\_\+\+CC2\+OF\+: Capture/\+Compare 2 overcapture flag \item TIM\+\_\+\+FLAG\+\_\+\+CC3\+OF\+: Capture/\+Compare 3 overcapture flag \item TIM\+\_\+\+FLAG\+\_\+\+CC4\+OF\+: Capture/\+Compare 4 overcapture flag \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em The} & new state of {\bfseries{FLAG}} (TRUE or FALSE). \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gabfeec6b3c67a5747c7dbd20aff61d8e2}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_GET\_ICPRESCALER@{\_\_HAL\_TIM\_GET\_ICPRESCALER}}
\index{\_\_HAL\_TIM\_GET\_ICPRESCALER@{\_\_HAL\_TIM\_GET\_ICPRESCALER}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_GET\_ICPRESCALER}{\_\_HAL\_TIM\_GET\_ICPRESCALER}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gabfeec6b3c67a5747c7dbd20aff61d8e2} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+ICPRESCALER(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ (((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga6b1541e4a49d62610899e24bf23f4879}{TIM\_CHANNEL\_1}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR1\ \&\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gab46b7186665f5308cd2ca52acfb63e72}{TIM\_CCMR1\_IC1PSC}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga33e02d43345a7ac5886f01b39e4f7ccd}{TIM\_CHANNEL\_2}})\ ?\ (((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR1\ \&\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga5e8e704f9ce5742f45e15e3b3126aa9d}{TIM\_CCMR1\_IC2PSC}})\ >>\ 8U)\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga4ea100c1789b178f3cb46721b7257e2d}{TIM\_CHANNEL\_3}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR2\ \&\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gafc3d11f2e968752bc9ec7131c986c3a6}{TIM\_CCMR2\_IC3PSC}})\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ (((\_\_HANDLE\_\_)-\/>Instance-\/>CCMR2\ \&\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga6fd7591e2de10272f7fafb08cdd1b7b0}{TIM\_CCMR2\_IC4PSC}}))\ >>\ 8U)}

\end{DoxyCode}


Get the TIM Input Capture prescaler on runtime. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+} & TIM Channels to be configured. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CHANNEL\+\_\+1\+: get input capture 1 prescaler value \item TIM\+\_\+\+CHANNEL\+\_\+2\+: get input capture 2 prescaler value \item TIM\+\_\+\+CHANNEL\+\_\+3\+: get input capture 3 prescaler value \item TIM\+\_\+\+CHANNEL\+\_\+4\+: get input capture 4 prescaler value \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em The} & input capture prescaler can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+ICPSC\+\_\+\+DIV1\+: no prescaler \item TIM\+\_\+\+ICPSC\+\_\+\+DIV2\+: capture is done once every 2 events \item TIM\+\_\+\+ICPSC\+\_\+\+DIV4\+: capture is done once every 4 events \item TIM\+\_\+\+ICPSC\+\_\+\+DIV8\+: capture is done once every 8 events \end{DoxyItemize}
\\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga644babf93470a6eee6bce8906c4da5c5}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_GET\_IT\_SOURCE@{\_\_HAL\_TIM\_GET\_IT\_SOURCE}}
\index{\_\_HAL\_TIM\_GET\_IT\_SOURCE@{\_\_HAL\_TIM\_GET\_IT\_SOURCE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_GET\_IT\_SOURCE}{\_\_HAL\_TIM\_GET\_IT\_SOURCE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga644babf93470a6eee6bce8906c4da5c5} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+IT\+\_\+\+SOURCE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((((\_\_HANDLE\_\_)-\/>Instance-\/>DIER\ \&\ (\_\_INTERRUPT\_\_))\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ==\ (\_\_INTERRUPT\_\_))\ ?\ SET\ :\ RESET)}

\end{DoxyCode}


Check whether the specified TIM interrupt source is enabled or not. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle \\
\hline
{\em \+\_\+\+\_\+\+INTERRUPT\+\_\+\+\_\+} & specifies the TIM interrupt source to check. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+IT\+\_\+\+UPDATE\+: Update interrupt \item TIM\+\_\+\+IT\+\_\+\+CC1\+: Capture/\+Compare 1 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC2\+: Capture/\+Compare 2 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC3\+: Capture/\+Compare 3 interrupt \item TIM\+\_\+\+IT\+\_\+\+CC4\+: Capture/\+Compare 4 interrupt \item TIM\+\_\+\+IT\+\_\+\+COM\+: Commutation interrupt \item TIM\+\_\+\+IT\+\_\+\+TRIGGER\+: Trigger interrupt \item TIM\+\_\+\+IT\+\_\+\+BREAK\+: Break interrupt \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em The} & state of TIM\+\_\+\+IT (SET or RESET). \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga12126f9a7655afcd862fc2e82686e9b9}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_GET\_UIFCPY@{\_\_HAL\_TIM\_GET\_UIFCPY}}
\index{\_\_HAL\_TIM\_GET\_UIFCPY@{\_\_HAL\_TIM\_GET\_UIFCPY}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_GET\_UIFCPY}{\_\_HAL\_TIM\_GET\_UIFCPY}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga12126f9a7655afcd862fc2e82686e9b9} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+GET\+\_\+\+UIFCPY(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+COUNTER\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{(((\_\_COUNTER\_\_)\ \&\ (\mbox{\hyperlink{group___peripheral___registers___bits___definition_ga9060f1ca4c5df1ab6e70af699ac71a16}{TIM\_CNT\_UIFCPY}}))\ ==\ (\mbox{\hyperlink{group___peripheral___registers___bits___definition_ga9060f1ca4c5df1ab6e70af699ac71a16}{TIM\_CNT\_UIFCPY}}))}

\end{DoxyCode}
\begin{DoxyVerb}@brief  Get update interrupt flag (UIF) copy status.
@param  __COUNTER__ Counter value.
@retval The state of UIFCPY (TRUE or FALSE).
\end{DoxyVerb}
 mode. \Hypertarget{group___t_i_m___exported___macros_gac73f5e7669d92971830481e7298e98ba}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_IS\_TIM\_COUNTING\_DOWN@{\_\_HAL\_TIM\_IS\_TIM\_COUNTING\_DOWN}}
\index{\_\_HAL\_TIM\_IS\_TIM\_COUNTING\_DOWN@{\_\_HAL\_TIM\_IS\_TIM\_COUNTING\_DOWN}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_IS\_TIM\_COUNTING\_DOWN}{\_\_HAL\_TIM\_IS\_TIM\_COUNTING\_DOWN}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gac73f5e7669d92971830481e7298e98ba} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+IS\+\_\+\+TIM\+\_\+\+COUNTING\+\_\+\+DOWN(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{(((\_\_HANDLE\_\_)-\/>Instance-\/>CR1\ \&(\mbox{\hyperlink{group___peripheral___registers___bits___definition_gacea10770904af189f3aaeb97b45722aa}{TIM\_CR1\_DIR}}))\ ==\ (\mbox{\hyperlink{group___peripheral___registers___bits___definition_gacea10770904af189f3aaeb97b45722aa}{TIM\_CR1\_DIR}}))}

\end{DoxyCode}


Indicates whether or not the TIM Counter is used as downcounter. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em False} & (Counter used as upcounter) or True (Counter used as downcounter) \\
\hline
\end{DoxyRetVals}
\begin{DoxyNote}{Note}
This macro is particularly useful to get the counting mode when the timer operates in Center-\/aligned mode or Encoder mode. 
\end{DoxyNote}
\Hypertarget{group___t_i_m___exported___macros_ga69d63e147faeca8909e9679f684c0325}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_MOE\_DISABLE@{\_\_HAL\_TIM\_MOE\_DISABLE}}
\index{\_\_HAL\_TIM\_MOE\_DISABLE@{\_\_HAL\_TIM\_MOE\_DISABLE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_MOE\_DISABLE}{\_\_HAL\_TIM\_MOE\_DISABLE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga69d63e147faeca8909e9679f684c0325} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+MOE\+\_\+\+DISABLE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\ \{\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ if\ (((\_\_HANDLE\_\_)-\/>Instance-\/>CCER\ \&\ TIM\_CCER\_CCxE\_MASK)\ ==\ 0UL)\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \{\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ if(((\_\_HANDLE\_\_)-\/>Instance-\/>CCER\ \&\ TIM\_CCER\_CCxNE\_MASK)\ ==\ 0UL)\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \{\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>Instance-\/>BDTR\ \&=\ \string~(\mbox{\hyperlink{group___peripheral___registers___bits___definition_ga277a096614829feba2d0a4fbb7d3dffc}{TIM\_BDTR\_MOE}});\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \}\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \}\ \(\backslash\)}
\DoxyCodeLine{\ \ \}\ \textcolor{keywordflow}{while}(0)}

\end{DoxyCode}


Disable the TIM main Output. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\begin{DoxyNote}{Note}
The Main Output Enable of a timer instance is disabled only if all the CCx and CCxN channels have been disabled 
\end{DoxyNote}
\Hypertarget{group___t_i_m___exported___macros_gaa5c4053e8e57dc234efecbb698287b55}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_MOE\_DISABLE\_UNCONDITIONALLY@{\_\_HAL\_TIM\_MOE\_DISABLE\_UNCONDITIONALLY}}
\index{\_\_HAL\_TIM\_MOE\_DISABLE\_UNCONDITIONALLY@{\_\_HAL\_TIM\_MOE\_DISABLE\_UNCONDITIONALLY}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_MOE\_DISABLE\_UNCONDITIONALLY}{\_\_HAL\_TIM\_MOE\_DISABLE\_UNCONDITIONALLY}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gaa5c4053e8e57dc234efecbb698287b55} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+MOE\+\_\+\+DISABLE\+\_\+\+UNCONDITIONALLY(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{(\_\_HANDLE\_\_)-\/>Instance-\/>BDTR\ \&=\ \string~(\mbox{\hyperlink{group___peripheral___registers___bits___definition_ga277a096614829feba2d0a4fbb7d3dffc}{TIM\_BDTR\_MOE}})}

\end{DoxyCode}


Disable the TIM main Output. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\begin{DoxyNote}{Note}
The Main Output Enable of a timer instance is disabled unconditionally 
\end{DoxyNote}
\Hypertarget{group___t_i_m___exported___macros_ga04890dcef3ed061854721a3672585607}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_MOE\_ENABLE@{\_\_HAL\_TIM\_MOE\_ENABLE}}
\index{\_\_HAL\_TIM\_MOE\_ENABLE@{\_\_HAL\_TIM\_MOE\_ENABLE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_MOE\_ENABLE}{\_\_HAL\_TIM\_MOE\_ENABLE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga04890dcef3ed061854721a3672585607} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+MOE\+\_\+\+ENABLE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>BDTR|=(\mbox{\hyperlink{group___peripheral___registers___bits___definition_ga277a096614829feba2d0a4fbb7d3dffc}{TIM\_BDTR\_MOE}}))}

\end{DoxyCode}


Enable the TIM main Output. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gace20fd4e38231b9682fbc83a80ec19a3}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_RESET\_HANDLE\_STATE@{\_\_HAL\_TIM\_RESET\_HANDLE\_STATE}}
\index{\_\_HAL\_TIM\_RESET\_HANDLE\_STATE@{\_\_HAL\_TIM\_RESET\_HANDLE\_STATE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_RESET\_HANDLE\_STATE}{\_\_HAL\_TIM\_RESET\_HANDLE\_STATE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gace20fd4e38231b9682fbc83a80ec19a3} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+RESET\+\_\+\+HANDLE\+\_\+\+STATE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{do}\ \{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>State\ \ \ \ \ \ \ \ \ \ \ \ =\ \mbox{\hyperlink{group___t_i_m___exported___types_ggae0994cf5970e56ca4903e9151f40010ca28011b79e60b74a6c55947c505c51cbc}{HAL\_TIM\_STATE\_RESET}};\ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>ChannelState[0]\ \ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga1a70fcbe9952e18af5c890e216a15f34a430f7e41a278868bc1a7c5de6a08dc94}{HAL\_TIM\_CHANNEL\_STATE\_RESET}};\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>ChannelState[1]\ \ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga1a70fcbe9952e18af5c890e216a15f34a430f7e41a278868bc1a7c5de6a08dc94}{HAL\_TIM\_CHANNEL\_STATE\_RESET}};\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>ChannelState[2]\ \ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga1a70fcbe9952e18af5c890e216a15f34a430f7e41a278868bc1a7c5de6a08dc94}{HAL\_TIM\_CHANNEL\_STATE\_RESET}};\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>ChannelState[3]\ \ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga1a70fcbe9952e18af5c890e216a15f34a430f7e41a278868bc1a7c5de6a08dc94}{HAL\_TIM\_CHANNEL\_STATE\_RESET}};\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>ChannelState[4]\ \ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga1a70fcbe9952e18af5c890e216a15f34a430f7e41a278868bc1a7c5de6a08dc94}{HAL\_TIM\_CHANNEL\_STATE\_RESET}};\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>ChannelState[5]\ \ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga1a70fcbe9952e18af5c890e216a15f34a430f7e41a278868bc1a7c5de6a08dc94}{HAL\_TIM\_CHANNEL\_STATE\_RESET}};\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>ChannelNState[0]\ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga1a70fcbe9952e18af5c890e216a15f34a430f7e41a278868bc1a7c5de6a08dc94}{HAL\_TIM\_CHANNEL\_STATE\_RESET}};\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>ChannelNState[1]\ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga1a70fcbe9952e18af5c890e216a15f34a430f7e41a278868bc1a7c5de6a08dc94}{HAL\_TIM\_CHANNEL\_STATE\_RESET}};\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>ChannelNState[2]\ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga1a70fcbe9952e18af5c890e216a15f34a430f7e41a278868bc1a7c5de6a08dc94}{HAL\_TIM\_CHANNEL\_STATE\_RESET}};\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>ChannelNState[3]\ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga1a70fcbe9952e18af5c890e216a15f34a430f7e41a278868bc1a7c5de6a08dc94}{HAL\_TIM\_CHANNEL\_STATE\_RESET}};\ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (\_\_HANDLE\_\_)-\/>DMABurstState\ \ \ \ =\ \mbox{\hyperlink{group___t_i_m___exported___types_gga9b87df539778a60ea940a9d5ba793f7ca98c26cb59bb0c07b7f020d7ff8678bb8}{HAL\_DMA\_BURST\_STATE\_RESET}};\ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \}\ \textcolor{keywordflow}{while}(0)}

\end{DoxyCode}


Reset TIM handle state. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gace8f6dae3653111344f4ff6bbfde7d2a}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_SELECT\_CCDMAREQUEST@{\_\_HAL\_TIM\_SELECT\_CCDMAREQUEST}}
\index{\_\_HAL\_TIM\_SELECT\_CCDMAREQUEST@{\_\_HAL\_TIM\_SELECT\_CCDMAREQUEST}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_SELECT\_CCDMAREQUEST}{\_\_HAL\_TIM\_SELECT\_CCDMAREQUEST}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gace8f6dae3653111344f4ff6bbfde7d2a} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SELECT\+\_\+\+CCDMAREQUEST(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CCDMA\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ MODIFY\_REG((\_\_HANDLE\_\_)-\/>Instance-\/>CR2,\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gade656832d3ec303a2a7a422638dd560e}{TIM\_CR2\_CCDS}},\ (\_\_CCDMA\_\_))}

\end{DoxyCode}


Select the Capture/compare DMA request source. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & specifies the TIM Handle. \\
\hline
{\em \+\_\+\+\_\+\+CCDMA\+\_\+\+\_\+} & specifies Capture/compare DMA request source This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CCDMAREQUEST\+\_\+\+CC\+: CCx DMA request generated on Capture/\+Compare event \item TIM\+\_\+\+CCDMAREQUEST\+\_\+\+UPDATE\+: CCx DMA request generated on Update event \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga1e6300cab1e34ecaaf490dc7d4812d69}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_SET\_AUTORELOAD@{\_\_HAL\_TIM\_SET\_AUTORELOAD}}
\index{\_\_HAL\_TIM\_SET\_AUTORELOAD@{\_\_HAL\_TIM\_SET\_AUTORELOAD}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_SET\_AUTORELOAD}{\_\_HAL\_TIM\_SET\_AUTORELOAD}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga1e6300cab1e34ecaaf490dc7d4812d69} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+AUTORELOAD(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+AUTORELOAD\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ (\_\_HANDLE\_\_)-\/>Instance-\/>ARR\ =\ (\_\_AUTORELOAD\_\_);\ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ (\_\_HANDLE\_\_)-\/>Init.Period\ =\ (\_\_AUTORELOAD\_\_);\ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \}\ \textcolor{keywordflow}{while}(0)}

\end{DoxyCode}


Set the TIM Autoreload Register value on runtime without calling another time any Init function. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+AUTORELOAD\+\_\+\+\_\+} & specifies the Counter register new value. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gac5d6989516caa67fae23a9329228cdc7}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_SET\_CAPTUREPOLARITY@{\_\_HAL\_TIM\_SET\_CAPTUREPOLARITY}}
\index{\_\_HAL\_TIM\_SET\_CAPTUREPOLARITY@{\_\_HAL\_TIM\_SET\_CAPTUREPOLARITY}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_SET\_CAPTUREPOLARITY}{\_\_HAL\_TIM\_SET\_CAPTUREPOLARITY}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gac5d6989516caa67fae23a9329228cdc7} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+CAPTUREPOLARITY(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+POLARITY\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ TIM\_RESET\_CAPTUREPOLARITY((\_\_HANDLE\_\_),\ (\_\_CHANNEL\_\_));\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ TIM\_SET\_CAPTUREPOLARITY((\_\_HANDLE\_\_),\ (\_\_CHANNEL\_\_),\ (\_\_POLARITY\_\_));\ \(\backslash\)}
\DoxyCodeLine{\ \ \}\textcolor{keywordflow}{while}(0)}

\end{DoxyCode}


Set the TIM Capture x input polarity on runtime. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+} & TIM Channels to be configured. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CHANNEL\+\_\+1\+: TIM Channel 1 selected \item TIM\+\_\+\+CHANNEL\+\_\+2\+: TIM Channel 2 selected \item TIM\+\_\+\+CHANNEL\+\_\+3\+: TIM Channel 3 selected \item TIM\+\_\+\+CHANNEL\+\_\+4\+: TIM Channel 4 selected \end{DoxyItemize}
\\
\hline
{\em \+\_\+\+\_\+\+POLARITY\+\_\+\+\_\+} & Polarity for TIx source \begin{DoxyItemize}
\item TIM\+\_\+\+INPUTCHANNELPOLARITY\+\_\+\+RISING\+: Rising Edge \item TIM\+\_\+\+INPUTCHANNELPOLARITY\+\_\+\+FALLING\+: Falling Edge \item TIM\+\_\+\+INPUTCHANNELPOLARITY\+\_\+\+BOTHEDGE\+: Rising and Falling Edge \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga8aa84d77c670890408092630f9b2bdc4}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_SET\_CLOCKDIVISION@{\_\_HAL\_TIM\_SET\_CLOCKDIVISION}}
\index{\_\_HAL\_TIM\_SET\_CLOCKDIVISION@{\_\_HAL\_TIM\_SET\_CLOCKDIVISION}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_SET\_CLOCKDIVISION}{\_\_HAL\_TIM\_SET\_CLOCKDIVISION}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga8aa84d77c670890408092630f9b2bdc4} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+CLOCKDIVISION(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CKD\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ (\_\_HANDLE\_\_)-\/>Instance-\/>CR1\ \&=\ (\string~\mbox{\hyperlink{group___peripheral___registers___bits___definition_gacacc4ff7e5b75fd2e4e6b672ccd33a72}{TIM\_CR1\_CKD}});\ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ (\_\_HANDLE\_\_)-\/>Instance-\/>CR1\ |=\ (\_\_CKD\_\_);\ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ (\_\_HANDLE\_\_)-\/>Init.ClockDivision\ =\ (\_\_CKD\_\_);\ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \}\ \textcolor{keywordflow}{while}(0)}

\end{DoxyCode}


Set the TIM Clock Division value on runtime without calling another time any Init function. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+CKD\+\_\+\+\_\+} & specifies the clock division value. This parameter can be one of the following value\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CLOCKDIVISION\+\_\+\+DIV1\+: t\+DTS=t\+CK\+\_\+\+INT \item TIM\+\_\+\+CLOCKDIVISION\+\_\+\+DIV2\+: t\+DTS=2\texorpdfstring{$\ast$}{*}t\+CK\+\_\+\+INT \item TIM\+\_\+\+CLOCKDIVISION\+\_\+\+DIV4\+: t\+DTS=4\texorpdfstring{$\ast$}{*}t\+CK\+\_\+\+INT \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga300d0c9624c3b072d3afeb7cef639b66}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_SET\_COMPARE@{\_\_HAL\_TIM\_SET\_COMPARE}}
\index{\_\_HAL\_TIM\_SET\_COMPARE@{\_\_HAL\_TIM\_SET\_COMPARE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_SET\_COMPARE}{\_\_HAL\_TIM\_SET\_COMPARE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga300d0c9624c3b072d3afeb7cef639b66} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+COMPARE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+COMPARE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ (((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga6b1541e4a49d62610899e24bf23f4879}{TIM\_CHANNEL\_1}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR1\ =\ (\_\_COMPARE\_\_))\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga33e02d43345a7ac5886f01b39e4f7ccd}{TIM\_CHANNEL\_2}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR2\ =\ (\_\_COMPARE\_\_))\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_ga4ea100c1789b178f3cb46721b7257e2d}{TIM\_CHANNEL\_3}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR3\ =\ (\_\_COMPARE\_\_))\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gad59ef74820ee8bf77fa1f8d589fde2ac}{TIM\_CHANNEL\_4}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR4\ =\ (\_\_COMPARE\_\_))\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_CHANNEL\_\_)\ ==\ \mbox{\hyperlink{group___t_i_m___channel_gae7a7e7ef775b2cce4dc5da3821c0703f}{TIM\_CHANNEL\_5}})\ ?\ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR5\ =\ (\_\_COMPARE\_\_))\ :\(\backslash\)}
\DoxyCodeLine{\ \ \ ((\_\_HANDLE\_\_)-\/>Instance-\/>CCR6\ =\ (\_\_COMPARE\_\_)))}

\end{DoxyCode}


Set the TIM Capture Compare Register value on runtime without calling another time Config\+Channel function. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+} & TIM Channels to be configured. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CHANNEL\+\_\+1\+: TIM Channel 1 selected \item TIM\+\_\+\+CHANNEL\+\_\+2\+: TIM Channel 2 selected \item TIM\+\_\+\+CHANNEL\+\_\+3\+: TIM Channel 3 selected \item TIM\+\_\+\+CHANNEL\+\_\+4\+: TIM Channel 4 selected \item TIM\+\_\+\+CHANNEL\+\_\+5\+: TIM Channel 5 selected \item TIM\+\_\+\+CHANNEL\+\_\+6\+: TIM Channel 6 selected \end{DoxyItemize}
\\
\hline
{\em \+\_\+\+\_\+\+COMPARE\+\_\+\+\_\+} & specifies the Capture Compare register new value. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga9746ac75e4cd25cec1a9ebac8cb82b97}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_SET\_COUNTER@{\_\_HAL\_TIM\_SET\_COUNTER}}
\index{\_\_HAL\_TIM\_SET\_COUNTER@{\_\_HAL\_TIM\_SET\_COUNTER}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_SET\_COUNTER}{\_\_HAL\_TIM\_SET\_COUNTER}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga9746ac75e4cd25cec1a9ebac8cb82b97} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+COUNTER(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+COUNTER\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>CNT\ =\ (\_\_COUNTER\_\_))}

\end{DoxyCode}


Set the TIM Counter Register value on runtime. Note Please check if the bit 31 of CNT register is used as UIF copy or not, this may affect the counter range in case of 32 bits counter TIM instance. Bit 31 of CNT can be enabled/disabled using \doxylink{group___t_i_m___exported___macros_ga70b3690dfed282ade70d503801b8bfd0}{\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+UIFREMAP\+\_\+\+ENABLE()}/\+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+UIFREMAP\+\_\+\+DISABLE() macros. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+COUNTER\+\_\+\+\_\+} & specifies the Counter register new value. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gaeb106399b95ef02cec502f58276a0e92}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_SET\_ICPRESCALER@{\_\_HAL\_TIM\_SET\_ICPRESCALER}}
\index{\_\_HAL\_TIM\_SET\_ICPRESCALER@{\_\_HAL\_TIM\_SET\_ICPRESCALER}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_SET\_ICPRESCALER}{\_\_HAL\_TIM\_SET\_ICPRESCALER}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gaeb106399b95ef02cec502f58276a0e92} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+ICPRESCALER(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+ICPSC\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\ \ \textcolor{keywordflow}{do}\{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ TIM\_RESET\_ICPRESCALERVALUE((\_\_HANDLE\_\_),\ (\_\_CHANNEL\_\_));\ \ \(\backslash\)}
\DoxyCodeLine{\ \ \ \ TIM\_SET\_ICPRESCALERVALUE((\_\_HANDLE\_\_),\ (\_\_CHANNEL\_\_),\ (\_\_ICPSC\_\_));\ \(\backslash\)}
\DoxyCodeLine{\ \ \}\ \textcolor{keywordflow}{while}(0)}

\end{DoxyCode}


Set the TIM Input Capture prescaler on runtime without calling another time HAL\+\_\+\+TIM\+\_\+\+IC\+\_\+\+Config\+Channel() function. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+CHANNEL\+\_\+\+\_\+} & TIM Channels to be configured. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+CHANNEL\+\_\+1\+: TIM Channel 1 selected \item TIM\+\_\+\+CHANNEL\+\_\+2\+: TIM Channel 2 selected \item TIM\+\_\+\+CHANNEL\+\_\+3\+: TIM Channel 3 selected \item TIM\+\_\+\+CHANNEL\+\_\+4\+: TIM Channel 4 selected \end{DoxyItemize}
\\
\hline
{\em \+\_\+\+\_\+\+ICPSC\+\_\+\+\_\+} & specifies the Input Capture4 prescaler new value. This parameter can be one of the following values\+: \begin{DoxyItemize}
\item TIM\+\_\+\+ICPSC\+\_\+\+DIV1\+: no prescaler \item TIM\+\_\+\+ICPSC\+\_\+\+DIV2\+: capture is done once every 2 events \item TIM\+\_\+\+ICPSC\+\_\+\+DIV4\+: capture is done once every 4 events \item TIM\+\_\+\+ICPSC\+\_\+\+DIV8\+: capture is done once every 8 events \end{DoxyItemize}
\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_gafdc5a06eab07e0c24e729fd492bdb27c}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_SET\_PRESCALER@{\_\_HAL\_TIM\_SET\_PRESCALER}}
\index{\_\_HAL\_TIM\_SET\_PRESCALER@{\_\_HAL\_TIM\_SET\_PRESCALER}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_SET\_PRESCALER}{\_\_HAL\_TIM\_SET\_PRESCALER}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gafdc5a06eab07e0c24e729fd492bdb27c} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+SET\+\_\+\+PRESCALER(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{, }\item[{}]{\+\_\+\+\_\+\+PRESC\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>PSC\ =\ (\_\_PRESC\_\_))}

\end{DoxyCode}


Set the TIM Prescaler on runtime. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
{\em \+\_\+\+\_\+\+PRESC\+\_\+\+\_\+} & specifies the Prescaler new value. \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga3ad980b67f6a9d43e97cd71603421ad8}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_UIFREMAP\_DISABLE@{\_\_HAL\_TIM\_UIFREMAP\_DISABLE}}
\index{\_\_HAL\_TIM\_UIFREMAP\_DISABLE@{\_\_HAL\_TIM\_UIFREMAP\_DISABLE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_UIFREMAP\_DISABLE}{\_\_HAL\_TIM\_UIFREMAP\_DISABLE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga3ad980b67f6a9d43e97cd71603421ad8} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+UIFREMAP\+\_\+\+DISABLE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{(((\_\_HANDLE\_\_)-\/>Instance-\/>CR1\ \&=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gaf0c8b29f2a8d1426cf31270643d811c7}{\string~TIM\_CR1\_UIFREMAP}}))}

\end{DoxyCode}
\begin{DoxyVerb}@brief  Disable update interrupt flag (UIF) remapping.
@param  __HANDLE__ TIM handle.
@retval None
\end{DoxyVerb}
 mode. \Hypertarget{group___t_i_m___exported___macros_ga70b3690dfed282ade70d503801b8bfd0}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_UIFREMAP\_ENABLE@{\_\_HAL\_TIM\_UIFREMAP\_ENABLE}}
\index{\_\_HAL\_TIM\_UIFREMAP\_ENABLE@{\_\_HAL\_TIM\_UIFREMAP\_ENABLE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_UIFREMAP\_ENABLE}{\_\_HAL\_TIM\_UIFREMAP\_ENABLE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga70b3690dfed282ade70d503801b8bfd0} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+UIFREMAP\+\_\+\+ENABLE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{(((\_\_HANDLE\_\_)-\/>Instance-\/>CR1\ |=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_gaf0c8b29f2a8d1426cf31270643d811c7}{TIM\_CR1\_UIFREMAP}}))}

\end{DoxyCode}
\begin{DoxyVerb}@brief  Force a continuous copy of the update interrupt flag (UIF) into the timer counter register (bit 31).
@note This allows both the counter value and a potential roll-over condition signalled by the UIFCPY flag to be read
      in an atomic way.
@param  __HANDLE__ TIM handle.
@retval None
\end{DoxyVerb}
 mode. \Hypertarget{group___t_i_m___exported___macros_gafacb551a4c537e62a0fe740b2f12236c}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_URS\_DISABLE@{\_\_HAL\_TIM\_URS\_DISABLE}}
\index{\_\_HAL\_TIM\_URS\_DISABLE@{\_\_HAL\_TIM\_URS\_DISABLE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_URS\_DISABLE}{\_\_HAL\_TIM\_URS\_DISABLE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_gafacb551a4c537e62a0fe740b2f12236c} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+URS\+\_\+\+DISABLE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>CR1\&=\mbox{\hyperlink{group___peripheral___registers___bits___definition_ga06c997c2c23e8bef7ca07579762c113b}{\string~TIM\_CR1\_URS}})}

\end{DoxyCode}


Reset the Update Request Source (URS) bit of the TIMx\+\_\+\+CR1 register. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
When the URS bit of the TIMx\+\_\+\+CR1 register is reset, any of the following events generate an update interrupt or DMA request (if enabled)\+: \doxylink{struct__}{\+\_\+} Counter overflow underflow \doxylink{struct__}{\+\_\+} Setting the UG bit \doxylink{struct__}{\+\_\+} Update generation through the slave mode controller 
\end{DoxyNote}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
\Hypertarget{group___t_i_m___exported___macros_ga3b06856bd6d7e10cfff342b1726db51d}\index{TIM Exported Macros@{TIM Exported Macros}!\_\_HAL\_TIM\_URS\_ENABLE@{\_\_HAL\_TIM\_URS\_ENABLE}}
\index{\_\_HAL\_TIM\_URS\_ENABLE@{\_\_HAL\_TIM\_URS\_ENABLE}!TIM Exported Macros@{TIM Exported Macros}}
\doxysubsubsubsubsection{\texorpdfstring{\_\_HAL\_TIM\_URS\_ENABLE}{\_\_HAL\_TIM\_URS\_ENABLE}}
{\footnotesize\ttfamily \label{group___t_i_m___exported___macros_ga3b06856bd6d7e10cfff342b1726db51d} 
\#define \+\_\+\+\_\+\+HAL\+\_\+\+TIM\+\_\+\+URS\+\_\+\+ENABLE(\begin{DoxyParamCaption}\item[{}]{\+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+}{}\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{((\_\_HANDLE\_\_)-\/>Instance-\/>CR1|=\ \mbox{\hyperlink{group___peripheral___registers___bits___definition_ga06c997c2c23e8bef7ca07579762c113b}{TIM\_CR1\_URS}})}

\end{DoxyCode}


Set the Update Request Source (URS) bit of the TIMx\+\_\+\+CR1 register. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+\+\_\+\+HANDLE\+\_\+\+\_\+} & TIM handle. \\
\hline
\end{DoxyParams}
\begin{DoxyNote}{Note}
When the URS bit of the TIMx\+\_\+\+CR1 register is set, only counter overflow/underflow generates an update interrupt or DMA request (if enabled) 
\end{DoxyNote}

\begin{DoxyRetVals}{Return values}
{\em None} & \\
\hline
\end{DoxyRetVals}
